﻿using AWSV2.Services;
using AWSV2.ViewModels;
using Common.Utility;
using Common.Utility.AJ;
using Common.Utility.AJ.Extension;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Stylet;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace AWSV2.Views
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ShellView
    {
        public ShellView()
        {
            InitializeComponent();
            Width = SystemParameters.WorkArea.Size.Width;
            Height = SystemParameters.WorkArea.Size.Height;
        }

        protected override void OnSourceInitialized(EventArgs e)
        {
            base.OnSourceInitialized(e);

            //if (PresentationSource.FromVisual(this) is HwndSource hwndSource)
            //{
            //    IntPtr handle = hwndSource.Handle;
            //    hwndSource.AddHook(new HwndSourceHook(WndProc));
            //}
        }

        ////MainAPP通过此窗口句柄传递过来的消息
        //private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        //{
        //    return hwnd;
        //}


        //protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        //{
        //    DragMove();

        //    base.OnMouseLeftButtonDown(e);
        //}

    }
}
